package com.handyshop.mall.dubbo.commodity.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.handyshop.mall.dubbo.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel(value = "属性值表")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "nrs_attr_option")
public class AttrOption extends BaseEntity {
    /**
     * 属性项Id
     */
    @TableField(value = "attr_id")
    @ApiModelProperty(value = "属性项Id")
    private Long attrId;

    /**
     * 属性值的code
     */
    @TableField(value = "option_code")
    @ApiModelProperty(value = "属性值的code")
    private String optionCode;

    /**
     * 名称
     */
    @TableField(value = "`name`")
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 第二名称
     */
    @TableField(value = "en_name")
    @ApiModelProperty(value = "第二名称")
    private String enName;

    /**
     * 图片
     */
    @TableField(value = "url")
    @ApiModelProperty(value = "图片")
    private String url;

    /**
     * 排序
     */
    @TableField(value = "sort")
    @ApiModelProperty(value = "排序")
    private Integer sort;

    /**
     * 备注
     */
    @TableField(value = "note")
    @ApiModelProperty(value = "备注")
    private String note;

    public static final String COL_ID = "id";

    public static final String COL_ATTR_ID = "attr_id";

    public static final String COL_OPTION_CODE = "option_code";

    public static final String COL_NAME = "name";

    public static final String COL_EN_NAME = "en_name";

    public static final String COL_URL = "url";

    public static final String COL_SORT = "sort";

    public static final String COL_NOTE = "note";

    public static final String COL_DELETE_FLAG = "delete_flag";

    public static final String COL_CREATOR_ID = "creator_id";

    public static final String COL_CREATOR = "creator";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_MODIFY_TIME = "modify_time";
}